package com.lyw.ioc.v2;

//Ioc开发，避免了修改一个需求更改，代码全改的情况(解耦)
public class Main {
    public static void main(String[] args) {

        Tire tire = new Tire(18, "red");
        Bottom bottom = new Bottom(tire);
        FrameWork frameWork = new FrameWork(bottom);
        Car car = new Car(frameWork);

        car.run();
    }

}
